import React, {Component} from 'react';
 
export function arrUnique (arr, field) {
  let s = {}
  for(let i=0,len=arr.length;i<len;i++){
      s[arr[i][field]] = arr[i]
  }
  return Object.values(s)
}